class HomeController < ApplicationController
  def index
    if session[:user_id]
      #puts session[:user_id]
      @user = User.find session[:user_id]
      respond_to do |format|
        format.html # index.html.erb
        format.xml
      end
    else
      redirect_to :controller=>'personal_management',:action=>'login'
      #@user = User.new
    end
  
  end
  
  def main
    
  end
  
  def welcome
    
  end
end
